package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-09-29
 */
public class WechatMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 浆站id
     */
    private Integer pid;
    @TableField(exist = false)
    private ShCustomerInfo shCustomerInfo;
    /**
     * 物料名称
     */
    private String name;
    @TableField(exist = false)
    private CgMaterial cgMaterial;
    /**
     * 批号
     */
    private String batch;
    /**
     * 编码
     */
    private String code;
    /**
     * 数量
     */
    private Float nums;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 是否签收
     */
    private Integer isSign;
    /**
     * 签收时间
     */
    private Date signTime;
    /**
     * 是否已经出库
     */
    private Integer isOut;
    //签收人
    private String signer;
    @TableField(exist = false)
    private String signerName;
    //剩余数量
     private  Float remain;
     //实际数量
    private  Float autNums;

    public Float getAutNums() {
        return autNums;
    }

    public void setAutNums(Float autNums) {
        this.autNums = autNums;
    }

    public Float getRemain() {
        return remain;
    }

    public void setRemain(Float remain) {
        this.remain = remain;
    }

    public Integer getIsOut() {
        return isOut;
    }

    public void setIsOut(Integer isOut) {
        this.isOut = isOut;
    }

    public String getSignerName() {
        return signerName;
    }

    public void setSignerName(String signerName) {
        this.signerName = signerName;
    }

    public String getSigner() {
        return signer;
    }

    public void setSigner(String signer) {
        this.signer = signer;
    }

    public ShCustomerInfo getShCustomerInfo() {
        return shCustomerInfo;
    }

    public void setShCustomerInfo(ShCustomerInfo shCustomerInfo) {
        this.shCustomerInfo = shCustomerInfo;
    }

    public CgMaterial getCgMaterial() {
        return cgMaterial;
    }

    public void setCgMaterial(CgMaterial cgMaterial) {
        this.cgMaterial = cgMaterial;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Float getNums() {
        return nums;
    }

    public void setNums(Float nums) {
        this.nums = nums;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Integer getIsSign() {
        return isSign;
    }

    public void setIsSign(Integer isSign) {
        this.isSign = isSign;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getSignTime() {
        return signTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }


    @Override
    public String toString() {
        return "WechatMaterial{" +
        "id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", batch=" + batch +
        ", code=" + code +
        ", nums=" + nums +
        ", createTime=" + createTime +
        ", creator=" + creator +
        ", isSign=" + isSign +
        ", signTime=" + signTime +
        ", isOut=" + isOut +
        "}";
    }
}
